package main.entity;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Past;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.stereotype.Component;

@Component
//@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity(name="message")
public class MessageVO extends BaseVO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5871664627092676950L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="mID", nullable=true)
	private Integer mID;
	@Column(name="mContent", nullable=true)
	private String mContent;
	@Past
	@Column(name="pubTime", nullable=true)
	private Date pubTime;
	@Column(name="uIDFrom", nullable=true)
	private Integer uIDFrom;
	@Column(name="uIDTo", nullable=true)
	private Integer uIDTo;
	
	public Integer getmID() {
		return mID;
	}
	public void setmID(Integer mID) {
		this.mID = mID;
	}
	public String getmContent() {
		return mContent;
	}
	public void setmContent(String mContent) {
		this.mContent = mContent;
	}
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	public Integer getuIDFrom() {
		return uIDFrom;
	}
	public void setuIDFrom(Integer uIDFrom) {
		this.uIDFrom = uIDFrom;
	}
	public Integer getuIDTo() {
		return uIDTo;
	}
	public void setuIDTo(Integer uIDTo) {
		this.uIDTo = uIDTo;
	}
	
}
